package com.richinfo.provider.controller;

import org.springframework.web.bind.annotation.RestController;

import com.richinfo.api.entity.User;
import com.richinfo.api.service.HelloService;

/**
* Created by WangXJ
* 2018-11-05 16:03
*/
@RestController
public class RefactorHelloController implements HelloService{

	public String hello(String name) {
		return "Hello" + name;
	}

	public User hello(String name, Integer age) {
		return new User(name, age);
	}

	public String hello(User user) {
		return "Hello" + user.getName() + "," + user.getAge();
	}

}
